package pl.th.permission.plugin.transform;

import com.android.build.api.transform.TransformInvocation;

import java.io.IOException;

public interface Transformer {

    void transform() throws Exception;

    static Transformer getTransformer(TransformInvocation invocation, boolean isSerial) {
        return isSerial ? new SerialTransformer(invocation) : new ParallelTransformer(invocation);
    }
}
